$(function() {

  $('.news-slide').hover(function() {
    if ($(this).hasClass('active')) {
      return;
    }
    $('.news-slide.active').removeClass('active');
    $(this).addClass('active');
  });

  if (app.getBreakpoint() == "xs") {
    $('.news-sections .clearfix').remove();
    $('.news-slide').addClass('active');

    $('.news-sections .row-full').slick({
      dots: true,
      infinite: true,
      speed: 400,
      slidesToShow: 1,
      autoplay: true,
      adaptiveHeight: true,
      autoplaySpeed:3000
    });
  }
});